package com.sright.bcard.user.share.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class AnalysisListResponse implements Serializable {


    private static final long serialVersionUID = -1249536888521783363L;
    /**
     * id : 146
     * visitor_user_id : 76
     * visitor_member_id : 71
     * name : 景老师
     * avatar : card/635c17697f918817045ed1cbccf9e2d0.jpg
     * first_name : 张三
     * mobile : 18058766321
     * length_visit : 1
     * first_vistor_at : 2020-05-19 11:26:35
     * last_vistor_at : 2020-05-21 15:25:02
     * tags : [{"id":16,"name":"测试添加"},{"id":17,"name":"测试1"},{"id":23,"name":"苗总"}]
     */

    private Long id;
    private Long visitorUserId;
    private Long visitorMemberId;
    private String name;
    private String avatar;
    private String firstName;
    private String mobile;
    private Integer lengthVisit;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date firstVistorAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastVistorAt;
    private List<TagsBean> tags;

    @Data
    public static class TagsBean {
        /**
         * id : 16
         * name : 测试添加
         */

        private Long id;
        private String name;

    }
}
